# -*- coding: utf-8 -*-
# @Time    : 2023/6/3 10:04
# @Author  : hy
# @Email   : 1596096369@qq.com
# @File    : base_page.py
# @Software: PyCharm
from selenium.webdriver.common.alert import Alert

class BasePage():
    def __init__(self,driver):
        self.driver = driver

    def find_element(self,locater):
        return self.driver.find_element(*locater)

    def alert(self):
        return Alert(self.driver)
